<!--begin path way -->
<div class="pathway clearfix">
    <ul>
        <?php foreach ($breadcrumbs as $breadcrumb) { ?>
        <li>
            <a <?php if (isset($breadcrumb['index'])) echo 'class="homepage"'; ?> href="<?php echo $breadcrumb['link']; ?>">
                <?php echo $breadcrumb['title']; ?>
            </a>
        </li>
        <?php } ?>
    </ul>
</div>
<!--end path way -->

<?php if (isset($error)) { ?>
<div class="notice">
    <h3><?php echo $error; ?></h3>
</div>
<?php } ?>

<div class="page" id="pageAccountInforamtion">
    <h5 class="pageTitle">Thông tin khách hàng</h5>
    <form action="<?php echo Link::build('account/update-information'); ?>" method="post">
        <fieldset>
            <legend>Nhập mật khẩu để thay đổi</legend>
            <p>
                <label for="ctrl_password">Mật khẩu:</label>
                <input type="password" name="password" required="required" />
            </p>
        </fieldset>
        <fieldset>
            <legend>Thông tin khách hàng</legend>
            <p>
                <label for="ctrl_name">Tên khách hàng:</label>
                <input type="text" name="name" id="ctrl_name" value="<?php echo $customer['name']; ?>" required="required" />
            </p>
            <p>
                <label for="ctrl_email">Email:</label>
                <input type="email" name="email" id="ctrl_email" value="<?php echo $customer['email']; ?>" required="required" />
            </p>
            <p>
                <label for="ctrl_phone">Điện thoại:</label>
                <input type="text" name="phone" id="ctrl_phone" value="<?php echo $customer['phone']; ?>" required="required">
            </p>
            <p>
                <label for="ctrl_birthday">Ngày sinh:</label>
                <input type="date" name="birthday" id="ctrl_birthday" value="<?php echo Html::date($customer['birthday']); ?>" />
            </p>
        </fieldset>

        <p class="submitWrapper">
            <button type="submit" name="do" value="update" class="button">Cập nhật</button>
        </p>
    </form>
</div>